package com.xtianzhuang.www.study2019.practice.niuke;

import java.util.Scanner;

public class Practice1 {
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		for (int i = 0; i <= 10; i++) {
			String num = scanner.next();
			int count = getQs(Integer.valueOf(num));
			System.out.println(count);
		}
	}

	public static int getQs(int num) {
		if (num % 3 == 0) {
			System.out.println("a");
			return num / 3;
		} else if (num % 3 == 2) {
			System.out.println("b");

			return (num + 1) / 3;
		} else {
			System.out.println("c");

			return (num - 1) / 3;
		}
	}

}

